package org.luxor.generator.entity;

import org.luxor.generator.constant.DateSourceType;

import java.io.Serializable;

/**
 * 数据源
 *
 * @author Mark sunlightcs@gmail.com
 */
public class DataSourceEntity implements Serializable {

    private DateSourceType databaseType;
    private String url;
    private String username;
    private String password;

    public DataSourceEntity() {
    }

    public DataSourceEntity(DateSourceType databaseType, String url, String username, String password) {
        this.databaseType = databaseType;
        this.url = url;
        this.username = username;
        this.password = password;
    }

    public DateSourceType getDatabaseType() {
        return databaseType;
    }

    public void setDatabaseType(DateSourceType databaseType) {
        this.databaseType = databaseType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "DataSourceEntity{" +
                "databaseType=" + databaseType +
                ", url='" + url + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
